export type OptionType = {
  label: string;
  value: string;
  checked: boolean;
};

export type QuestionCheckboxPropsType = {
  title?: string;
  list?: OptionType[];
  prompt?: string | string[];
  isVertical?: boolean;
  isRequired?: boolean;
  isRandom?: boolean;
  onChange?: (newProps: QuestionCheckboxPropsType) => void;
  disabled?: boolean;
};

export const QuestionCheckboxDefaultProps: QuestionCheckboxPropsType = {
  title: "默认复选框标题",
  list: [
    {
      label: "默认选项1",
      value: "item1",
      checked: false,
    },
  ],
  prompt: [],
  isVertical: false,
  isRequired: false,
  isRandom: false,
};

export type QuestionCheckboxStatPropsType = {
  stat: Array<{ name: string; count: number }>;
};
